package cn.cihon.stream.util

/**
  * Created by eeexiu on 16-12-27.
  */
case class CihonDataOne(
                         vin: String,
                         devicesn: String,
                         speed: Double,
                         rpm: Double,
                         acceleration: Double,
                         lateralAcc: Double,
                         mileage: Double,
                         insfuel: Double,
                         longitude: Double,
                         latitude: Double,
                         servertime: Long,
                         cartime: Long,
                         mileagefautycode: Double,
                         cihonDataTwo:CihonDataTwo,
                         cihonDataThree:CihonDataThree,
                         cihonDataFour:CihonDataFour,
                         cihonDataFine: CihonDataFine
                       )

case class CihonDataTwo(
                         faultyCode: String,
                         milState: String,
                         frameFaultycode: String,
                         fuelSys1: String,
                         fuelSys2: String,
                         loadPct: String,
                         ect: String,
                         shrTft1: String,
                         longTft1: String,
                         shrTft2: String,
                         longTft2: String,
                         fuelPress: String,
                         imap: String,
                         sparkAdv: String,
                         iat: String,
                         maf: String,
                         atp: String,
                         stsoPos: String,
                         osov11: String,
                         shrTft11: String
                       )
case class CihonDataThree(
                           osov12: String,
                           shrTft12: String,
                           osov21: String,
                           shrTft21: String,
                           osov22: String,
                           shrTft22: String,
                           ptoState: String,
                           engineStartTime: String,
                           milMileage: String,
                           imvFrp: String,
                           eqr11: String,
                           eqr12: String,
                           eqr21: String,
                           eqr22: String,
                           egrPct: String,
                           evapPct: String,
                           fuelInput: String,
                           warmUps: String,
                           evapVp: String,
                           barPress: String
                         )
case class CihonDataFour(
                          toc11: String,
                          toc21: String,
                          toc12: String,
                          toc22: String,
                          moduleVoltage: String,
                          loadAbs: String,
                          eqr: String,
                          throttlePosition: String,
                          temperature: String,
                          trottleAbsB: String,
                          trottleAbsC: String,
                          trottleAbsD: String,
                          trottleAbsE: String,
                          trottleAbsF: String,
                          trottleExec: String,
                          milEngineTime: String,
                          fautyCodeEngineTime: String,
                          fuelPabs: String,
                          pedalPos: String,
                          hevBatt: String
                        )
case class CihonDataFine(
                          eot: String,
                          fuelTiming: String,
                          engineFuelRate: String,
                          altitude: String,
                          gpsSpeed: String,
                          accX: String,
                          accY: String,
                          accZ: String,
                          gyroX: String,
                          gyroY: String,
                          gyroZ: String,
                          hrAngle: String,
                          rrAngle: String,
                          frAngle: String,
                          voltage: String,
                          dataSource: String
                        )
case class RecordCihonData(data: CihonDataOne, partition: Int, offset: Long)
